# Contributor: Angelo Verlain <hey@vixalien.com>
# Maintainer: Angelo Verlain <hey@vixalien.com>
pkgname=elementary-calculator
pkgver=8.0.0
pkgrel=0
pkgdesc="Calculator app designed for elementary OS"
url="https://github.com/elementary/calculator"
arch="all"
license="GPL-3.0-or-later"
makedepends="
	granite7-dev
	gtk4.0-dev
	meson
	vala
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://github.com/elementary/calculator/archive/refs/tags/$pkgver.tar.gz"

builddir="$srcdir/calculator-$pkgver"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
0c070ff3a5fc429eb3629070f87f5364616e6449946c3ca9984828d8e7e8034b9d7ff985315b4ed7976ab9ae460abb8b496245df55572c3ca3da6641f0f7a50e  elementary-calculator-8.0.0.tar.gz
"
